package com.example.designsoft.mvptest;

import android.util.Log;

import com.example.designsoft.MyApplication;
import com.example.designsoft.base.BasePresenter;

/**
 * author : Gyk
 * time   : 2020/11/17
 * todo   :
 */
public class MvpTestPresenter extends BasePresenter<MvpTestContract.Model, MvpTestContract.View> implements MvpTestContract.IPresenter {
    @Override
    public void setResult(String s) {
        MvpTestContract.View mView = getView();
        if (mView == null) {
            return;
        }
        mModel.getData(s, new MvpListener() {
            @Override
            public void onSuccess(String content) {
                mView.setData(content);
            }

            @Override
            public void onError() {

            }
        });
    }
}
